export const constantRoute = [
    {
        path: '/login',
        component: () => import('@/views/login/login.vue'),
        name: 'login',
        meta: {
            title: '登录',
            hidden: true,
            icon: 'ChatSquare',
        }
    },
    {
        path: '/',
        component: () => import('@/layout/index.vue'),
        name: 'layout',
        meta: {
            title: '首页',
            hidden: false,
            icon: '',
        },
        redirect: '/home',
        children: [
            {
                path: '/home',
                component: () => import('@/views/home/home.vue'),
                name: 'home',
                meta: {
                    title: '首页',
                    hidden: false,
                    icon: 'Clock',
                }
            }
        ]
    },
    {
        path: '/screen',
        component: () => import('@/views/screen/index.vue'),
        name: 'screen',
        meta: {
            title: '数据大屏',
            hidden: false,
            icon: 'TrendCharts',
        },
    },
    {
        path: '/acl',
        component: () => import('@/layout/index.vue'),
        name: 'acl',
        meta: {
            title: '权限管理',
            hidden: false,
            icon: 'Lock',
        },
        redirect: '/acl/user',
        children: [
            {
                path: '/acl/user',
                component: () => import('@/views/acl/user/index.vue'),
                name: 'user',
                meta: {
                    title: '用户',
                    hidden: false,
                    icon: 'User',
                }
            },
            {
                path: '/acl/role',
                component: () => import('@/views/acl/role/index.vue'),
                name: 'role',
                meta: {
                    title: '角色',
                    hidden: false,
                    icon: 'User',
                }
            },
            {
                path: '/acl/menu',
                component: () => import('@/views/acl/menu/index.vue'),
                name: 'menu',
                meta: {
                    title: '菜单',
                    hidden: false,
                    icon: 'User',
                }
            }
        ]
    },
    {
        path: '/product',
        component: () => import('@/layout/index.vue'),
        name: 'product',
        meta: {
            title: '商品管理',
            icon: 'Goods',
        },
        redirect: '/product/trademark',
        children: [
            {
                path: '/product/trademark',
                component: () => import('@/views/product/trademark/index.vue'),
                name: 'trademark',
                meta: {
                    title: '品牌管理',
                    icon: 'ShoppingCartFull',
                }
            },
            {
                path: '/product/attr',
                component: () => import('@/views/product/attr/index.vue'),
                name: 'attr',
                meta: {
                    title: '属性管理',
                    icon: 'ChromeFilled',
                }
            },
            {
                path: '/product/spu',
                component: () => import('@/views/product/spu/index.vue'),
                name: 'spu',
                meta: {
                    title: 'SPU管理',
                    icon: 'Calendar',
                }
            },
            {
                path: '/product/sku',
                component: () => import('@/views/product/sku/index.vue'),
                name: 'sku',
                meta: {
                    title: 'SKU管理',
                    icon: 'Orange',
                }
            }
        ]
    },
    {
        path: '/404',
        component: () => import('@/views/404/404.vue'),
        name: '404',
        meta: {
            title: '错误页',
            hidden: true,
            icon: 'Connection',
        }
    },
    {
        path: '/:pathMath(.*)*',
        redirect: '/404',
        name: 'any',
        meta: {
            title: '任意',
            hidden: true,
            icon: 'Service',
        }
    }
]